import Cookies from "js-cookie";

const TokenKey = "fufu_admin_token";

export function getToken() {
  return Cookies.get(TokenKey);
}

export function setToken(token) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}

const UserMess = "fufu_user_Mess";

export function getUserMess() {
  return Cookies.get(UserMess);
}

export function setUserMess(data) {
  return Cookies.set(UserMess, data);
}

export function removeUserMess() {
  return Cookies.remove(UserMess);
}
